package org.custom.spring.boot.mybatis.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;

/**
 * MybatisMapping
 *
 * @author 李坤
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MybatisMapping implements Serializable {
    /**
     * 参数Key
     */
    private String key;

    /**
     * 参数Value
     */
    private Object value;

    /**
     * 数据库类型
     */
    private JdbcType jdbcType;

    public MybatisMapping(Object value, JdbcType jdbcType) {
        this.value = value;
        this.jdbcType = jdbcType;
    }
}
